package cn.tedu.yl.role.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class RoleSaveParam {
    @ApiModelProperty(value = "角色id")
    private Integer id;
    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;
    @ApiModelProperty(value = "角色状态")
    private String status;
    @ApiModelProperty(value = "角色描述")
    @NotBlank(message = "角色描述不能为空")
    private String message;
    @ApiModelProperty(value = "拥有权限")
    @NotBlank(message = "拥有权限不能为空")
    private String permission;
}
